package io.renren.modules.cgs.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.modules.cgs.dao.CgsAccidencheckDao;
import io.renren.modules.cgs.entity.CgsAccidencheckEntity;
import io.renren.modules.cgs.service.CgsAccidencheckService;



@Service("cgsAccidencheckService")
public class CgsAccidencheckServiceImpl implements CgsAccidencheckService {
	@Autowired
	private CgsAccidencheckDao cgsAccidencheckDao;
	
	@Override
	public CgsAccidencheckEntity queryObject(String id){
		return cgsAccidencheckDao.queryObject(id);
	}
	
	@Override
	public List<CgsAccidencheckEntity> queryList(Map<String, Object> map){
		return cgsAccidencheckDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return cgsAccidencheckDao.queryTotal(map);
	}
	
	@Override
	public void save(CgsAccidencheckEntity cgsAccidencheck){
		cgsAccidencheckDao.save(cgsAccidencheck);
	}
	
	@Override
	public void update(CgsAccidencheckEntity cgsAccidencheck){
		cgsAccidencheckDao.update(cgsAccidencheck);
	}
	
	@Override
	public void delete(String id){
		cgsAccidencheckDao.delete(id);
	}
	
	@Override
	public void deleteBatch(String[] ids){
		cgsAccidencheckDao.deleteBatch(ids);
	}
	
}
